var mongoose=require("mongoose")
mongoose.connect('mongodb://mongo:Bmsoft123@139.159.212.111:12345/test')
var Movie=require('./models/movie')
//插入
// var _movie =new Movie({
//     doctor:'诺兰',
//     title:'穿越星际'
// })
// _movie.save()

//查询
Movie.findByDoctor('诺兰',function(err,_movie){
    console.log(_movie)
})



